package com.ruifu.bom.service;

import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruifu.bom.vo.RelevanceDocumentVO;
import com.ruifu.common.po.MaterielDocument;

import java.util.List;

/**
 * @author lcq
 * @create 2020/1/2
 */
public interface MaterielDocumentService extends IService<MaterielDocument> {
    /**
     * 删除关联文档
     *
     * @param mdIds
     * @return
     */
    R deleteBatch(List<Long> mdIds);

    /**
     * 批量新增关联文档
     *
     * @param mdVerId
     * @param dcVerIds
     * @return
     */
    R addBatch(Long mdVerId, List<Long> dcVerIds);

    /**
     * 根据物料版本id查询
     *
     * @param mdVersionsId
     * @return
     */
    List<RelevanceDocumentVO> findByMdVersionsId(Long mdVersionsId);
}
